package com.stylefeng.guns.modular.system.dao;

import com.stylefeng.guns.common.persistence.model.OrgInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 入驻信息Dao
 *
 * @author fengshuonan
 * @Date 2018-08-13 14:46:27
 */
public interface OrgInfoDao {

    List<Map<String, Object>> selectAll();
    

    OrgInfo findByAdminUserId(@Param("userId") Integer userId);

    Integer updateUserIdByJoinId(@Param("joinId") Integer joinId, @Param("userId") Integer userId);

    List<Map<String,Object>> selectByCurrentState(@Param("currentState") Integer currentState);
    List<Map<String,Object>> selectByCurrentState2();

    List<Map<String,Object>> selectAllByCity(@Param("city") Integer city);

    List<OrgInfo> findAll();

    String getOrgInfoOrgNameById(Integer id);

    Integer updateAdminUserIdById(@Param("id") Integer id, @Param("userId") Integer userId);

    OrgInfo getInfoByAdminUserId(@Param("adminUserId") Integer adminUserId);
}